function AjaxOperator(){
	this.sendPost = function(url,paramObj,fndone,fnfail){
		$.ajax({
            type:"POST",
            url:url,
            data:JSON.stringify(paramObj),
            dataType:"json",
            contentType:"application/json"
        }).done(function(msg){
            fndone(msg);
        }).fail(function(error){
            fnfail(error);
        });
	}
	
	this.sendGet = function(url,fndone, fnfail){
		$.ajax({
			type:"GET",
            url:url,
            dataType:"text"
		}).done(function(msg){
			fndone(msg);
		}).fail(function(error){
			fnfail(error);
		});
	}
}